package com.sokal.easycare.modules.position.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.google.common.collect.Lists;
import com.sokal.easycare.common.persistence.DataEntity;
import com.sokal.easycare.modules.sys.entity.FileLibrary;
import com.sokal.easycare.modules.sys.entity.MainUser;

/**
 * 参与人项目Entity
 * @author yangmin
 * @version 2017-04-09
 */
public class PartyProj extends DataEntity<PartyProj> {
	
	private static final long serialVersionUID = 1L;
	private MainUser user;		// user_id
	private String projnname;		// 项目名称
	private String logofileid;
	private String logopath;
	private List<FileLibrary> files =  Lists.newArrayList(); 
	
	public PartyProj() {
		super();
	}

	public PartyProj(String id){
		super(id);
	}

	public MainUser getUser() {
		return user;
	}

	public void setUser(MainUser user) {
		this.user = user;
	}
	

	public List<FileLibrary> getFiles() {
		return files;
	}

	public void setFiles(List<FileLibrary> files) {
		this.files = files;
	}

	@Length(min=0, max=50, message="项目名称长度必须介于 0 和 50 之间")
	public String getProjnname() {
		return projnname;
	}

	public void setProjnname(String projnname) {
		this.projnname = projnname;
	}

	public String getLogofileid() {
		return logofileid;
	}

	public void setLogofileid(String logofileid) {
		this.logofileid = logofileid;
	}

	public String getLogopath() {
		return logopath;
	}

	public void setLogopath(String logopath) {
		this.logopath = logopath;
	}
	
}